
CXX = g++
CXXFLAGS = -std=c++11 -O2
TF_INC=/usr/local/lib/python3.6/dist-packages/tensorflow_core/include
CXXINC = -I${TF_INC} -I${TF_INC}/external/nsync/public
CXXLIB = -L/usr/local/lib/python3.6/dist-packages/tensorflow_core
CXXLD = -ltensorflow_framework

CPPFILES = ./src/*.cpp
SO_NAME = extracts_op.so

all: tfop

tfop:
	${CXX} ${CXXFLAGS}  ${CXXINC} ${CPPFILES}  ${CXXLIB} ${CXXLD} -o ./op_lib/$(SO_NAME) -g -Wall -fPIC -shared -DEXTRACT



# ${CXX} ${CXXFLAGS}  ${CXXINC} ${CPPFILES}   -o ./op_lib/$(SO_NAME)   -D_GLIBCXX_USE_CXX11_ABI=0 -DEXTRACT  -g -Wall -fPIC -shared
